package cc.flybb.tianblog.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
 
@Configuration
public class MyWebAppConfigurer extends WebMvcConfigurerAdapter {
 
	/**  从零开始学Spring Boot-  http://412887952-qq-com.iteye.com/blog/2292098 */
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/staticblog/**").addResourceLocations("classpath:/staticblog/");
        super.addResourceHandlers(registry);
    }}